var articleList = new Vue({
    el: "#article_list",
    data: {
        titleList: [
            {title: '',link: ''}
        ]
    },
    computed:{

    },
    created:function () {
        axios({
            method: 'get',
            url: '/queryAllBlog'
        }).then((res) => {
            list = []
            var temp = res.data.data;
            console.log(temp)
            for(var i = 0; i < temp.length; i ++){
               var article = {}
               article.title = temp[i].title;
               article.link = "/blog_detail.html?bid=" + temp[i].id;
               list.push(article);
            }
            articleList.titleList = list;

        })
    }
})